package com.lx.api;

import com.lx.model.PrintDishType;
import com.lx.service.PrintDishTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class TestController {

    @Autowired
    private PrintDishTypeService printDishTypeService;
    @GetMapping("/print/test")
    public String test(){
        PrintDishType type = new PrintDishType();
        type.setId(1L);
        type.setDishTypeName("fsdafsa");
        type.setDishTypeNo("NNN");
        type.setShopId(11L);
        type.setCreateTime(new Date());
        type.setUpdateTime(new Date());
        printDishTypeService.saveDishType(type);
        return "111";
    }

}
